]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
3 years agoci: Update JS tooling
Florian Müllner [Thu, 17 Feb 2022 21:54:22 +0000 (22:54 +0100)]
ci: Update JS tooling

Provided we use the correct version of the SpiderMonkey shell, we
can perform checks using the same engine that is used by gjs.

However some engine features are opt-in, so the set of features enabled
by gjs and js102 may differ. The obvious option for avoiding this is
replacing js102 with gjs for tests.

For that reason the check-potfiles.js script has been ported to gjs
and a second (simpler) script to replace `js102 --compileonly` was
added. This work happened in a separate repository to make sharing
between different JS-based projects easier.

Update the CI image to pull in those scripts and include gjs.

This will also address the issue that `js102 --compileonly` does not
handle modules.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2193>

3 years agoci: Remove duplicated cleanup
Florian Müllner [Thu, 17 Feb 2022 22:30:36 +0000 (23:30 +0100)]
ci: Remove duplicated cleanup

The template will already call `dnf clean all` after processing
packages and the script, so no need for us to call it as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2193>

3 years agoautorunManager: Add missing await keyword
Balló György [Fri, 21 Apr 2023 08:02:16 +0000 (08:02 +0000)]
autorunManager: Add missing await keyword

This fixes a regression introduced in commit c6861c0a3d3db3b3f4343e38b08b48d18803b2fe

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2745>

3 years agoci: Update JS image
Florian Müllner [Tue, 14 Mar 2023 12:17:12 +0000 (13:17 +0100)]
ci: Update JS image

The image hasn't been updated for over a year, and it's now based
on an unsupported distro version. Jump directly to F38 which has
just been released.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2695>

3 years agoci: Drop version suffix from job name
Florian Müllner [Tue, 14 Mar 2023 12:25:49 +0000 (13:25 +0100)]
ci: Drop version suffix from job name

We don't build images for multiple distro versions, so all it does
is making version bumps more finicky.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2695>

3 years agosearch: Expand search results view
Sebastian Keller [Thu, 20 Apr 2023 23:08:23 +0000 (01:08 +0200)]
search: Expand search results view

Otherwise the search results can end up only as large as their content.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5924
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2744>

3 years agoci: Make fringe meson-install arguments optional
Florian Müllner [Mon, 20 Mar 2023 01:01:33 +0000 (02:01 +0100)]
ci: Make fringe meson-install arguments optional

Both the subdir and prepare arguments are very specific to
building the extensions-tool subproject stand-alone. In order
to make the script more generic, turn those required arguments
into optional --subdir and --prepare ones.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agoci: Add --help option to meson-install script
Florian Müllner [Mon, 20 Mar 2023 00:55:59 +0000 (01:55 +0100)]
ci: Add --help option to meson-install script

It's not really necessary in an internal script, but it's easy
enough and doesn't hurt *shrug*

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agoci: Use built-in option parsing in meson-install
Florian Müllner [Mon, 20 Mar 2023 00:41:15 +0000 (01:41 +0100)]
ci: Use built-in option parsing in meson-install

This is less concise than the current ad-hoc parsing, but gets
us error handling ("unknown option --foo") and is easier to
extend.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agoci: Make sure to always clear meson-install checkout dir
Florian Müllner [Tue, 21 Mar 2023 00:00:07 +0000 (01:00 +0100)]
ci: Make sure to always clear meson-install checkout dir

We currently remove the directory at the end of the script, but
that code is only reached when all previous operations were
successful.

Address this by first using an absolute directory path in /tmp
instead of a "random" location based on the CWD, then set a trap
to remove it on exit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agoci: Fix meson-install usage check
Florian Müllner [Mon, 20 Mar 2023 00:47:30 +0000 (01:47 +0100)]
ci: Fix meson-install usage check

The script has four mandatory arguments, and also accepts optional
build options that are passed on to meson. Checking for the number
of arguments *before* filtering out the optional ones means that

`./install-meson-project.sh -Done=1 -Dtwo=2 -Dthree=3 -Dfour=4`

is considered valid, even though not a single required argument
is passed.

Fix this by filtering out the arguments before doing the usage
check. As it is a nice touch to have usage information at the
top of the script, move the message into a usage() function at
the top.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agoci: Stop running meson without subcommand
Florian Müllner [Mon, 20 Mar 2023 00:40:43 +0000 (01:40 +0100)]
ci: Stop running meson without subcommand

Invoking meson with no command is deprecated in favor of
`meson setup`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agosubprojects: Stop running meson without subcommand
Florian Müllner [Wed, 22 Mar 2023 13:00:56 +0000 (14:00 +0100)]
subprojects: Stop running meson without subcommand

Invoking meson with no command is deprecated in favor of
`meson setup`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

3 years agoshell-app-system: Give priority to .desktop IDs that should be shown
Marco Trevisan (Treviño) [Thu, 23 Mar 2023 23:25:06 +0000 (00:25 +0100)]
shell-app-system: Give priority to .desktop IDs that should be shown

If we have multiple desktop ID's that share the same startup-wm class
and none of them is actually matching the desktop-id, then we should
exclude the ones that should not be shown in the current desktop.

This will help preventing cases such as the previous one in case no
desktop file ID would match the startup-wm-class exactly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2721>

3 years agoshell-app-system: Do not compare startup-wm classes with full desktop IDs
Marco Trevisan (Treviño) [Thu, 23 Mar 2023 23:02:16 +0000 (00:02 +0100)]
shell-app-system: Do not compare startup-wm classes with full desktop IDs

When fetching the desktop ids into a map of startup-wm classes we meant
to give the ones that match the desktop ID more priority, however
this did not happen because we were always comparing a desktop
file id, including the `.desktop` suffix, with a wm-class that generally
does not include that.

This is the case of gnome-system-monitor, that provides two desktop
files, one of which is OnlyShowIn=KDE but both have the same
StartupWMClass and thus the first parsed is preferred, even though its
desktop-id is gnome-system-monitor-kde.

As per this, remove the .desktop suffix when comparing it with the
startup-wm-class, keeping the old check just in case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2721>

3 years agoscripting: Return promise in helper window wait functions
Jonas Ådahl [Tue, 18 Apr 2023 14:27:58 +0000 (16:27 +0200)]
scripting: Return promise in helper window wait functions

Otherwise they won't wait when doing e.g. `await waitTestWindows();`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agotests/closeWithActiveWindows: Also test input method tear down
Jonas Ådahl [Fri, 24 Mar 2023 10:28:11 +0000 (11:28 +0100)]
tests/closeWithActiveWindows: Also test input method tear down

From a test case perspective, it's simple - make the test window have a
text entry, and make sure we have a virtual keyboard making GTK3 enable
the text entry. This would without a fix trigger
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6535.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agojs/main: Unset input method on shutdown
Jonas Ådahl [Fri, 24 Mar 2023 10:26:49 +0000 (11:26 +0100)]
js/main: Unset input method on shutdown

After shutdown, the Javascript context will be disposed, so we must make
sure we remain the active input method after this point.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6535
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agoperf-helper: Allow creating window with text input
Jonas Ådahl [Fri, 24 Mar 2023 10:26:05 +0000 (11:26 +0100)]
perf-helper: Allow creating window with text input

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agotests/perf: Add test for shutdown with open window
Jonas Ådahl [Fri, 24 Mar 2023 09:22:41 +0000 (10:22 +0100)]
tests/perf: Add test for shutdown with open window

This would without the applied fix trigger
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6536.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agoscripting: Allow avoiding exiting perf helper
Jonas Ådahl [Fri, 24 Mar 2023 09:21:38 +0000 (10:21 +0100)]
scripting: Allow avoiding exiting perf helper

This will help creating test cases where windows are open during
shutdown.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agoshell: Make singletons owned by ShellGlobal
Jonas Ådahl [Fri, 24 Mar 2023 09:16:07 +0000 (10:16 +0100)]
shell: Make singletons owned by ShellGlobal

This means also means they will be cleaned up when disposing
ShellGlobal, which will then mean signals tied to the GObject lifetime
will be disconnected.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6536
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agoshell/window-tracker: Disconnect signals on disposal
Jonas Ådahl [Fri, 24 Mar 2023 09:18:08 +0000 (10:18 +0100)]
shell/window-tracker: Disconnect signals on disposal

We always leak this, so this has no effect right now, but will in a
follow up commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

3 years agopopupMenu: Only activate items that still have the pointer
Florian Müllner [Wed, 19 Apr 2023 10:08:53 +0000 (12:08 +0200)]
popupMenu: Only activate items that still have the pointer

After the introduction of implicit grabs in Clutter, a release
event will now always be delivered to the actor that received
the corresponding press event.

This results in surprising behavior when moving the pointer
while pressed, as a button release will always activate the
original item, even when the pointer moved to a different item
or outside the menu altogether.

Address this by checking the hover state (that is, whether
the item contains the pointer actor) before activating it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6606

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2740>

3 years agoUpdate German translation
Philipp Kiemle [Thu, 20 Apr 2023 09:01:27 +0000 (09:01 +0000)]
Update German translation

3 years agoUpdate Basque translation
Asier Sarasua Garmendia [Wed, 19 Apr 2023 17:36:25 +0000 (17:36 +0000)]
Update Basque translation

3 years agowindowPreview: Ignore leave events after being destroyed
Sebastian Keller [Mon, 17 Apr 2023 11:38:23 +0000 (13:38 +0200)]
windowPreview: Ignore leave events after being destroyed

When a WindowPreview is being destroyed, the class default handler for
the `destroy` signal is responsible for destroying its child actors.
This happens after the emission of the `destroy` signal, i.e. after
`WindowPreview::_onDestroy()` has been run.

The destruction of the WindowPreview's child actors now triggers a
re-pick, but due to WindowPreview having already being marked as
`CLUTTER_IN_DESTRUCTION`, it will not be picked, resulting in a `leave`
event if the cursor was on top of the WindowPreview at the time
`destroy()` was called on it.

So this leads to `WindowPreview::vfunc_leave_event()` being run after
`WindowPreview::_onDestroy()`, which means the idle started by the leave
event handler will not be removed and ends up accessing actors after
they have already been destroyed.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5512
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6065
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2738>

3 years agodash: Do not destroy a dash label twice
Marco Trevisan (Treviño) [Mon, 17 Apr 2023 17:53:34 +0000 (19:53 +0200)]
dash: Do not destroy a dash label twice

Dash labels are children of the main uiGroup and so could be destroyed
before their logical-owner DashItemContainer during shutdown.

This implies that we could destroy them twice. To avoid this, unset them
when destroyed.

This is mostly visible when using dash-to-dock, but it's still
technically possible with upstream code:

** Message: 19:57:49.847: Shutting down GNOME Shell

(gnome-shell:2788214): Gjs-CRITICAL **: 19:57:49.933: Object St.Label
 (0x55b33668eab0), has been already disposed — impossible to access it.
 This might be caused by the object having been destroyed from C code using
something such as destroy(), dispose(), or remove() vfuncs.
  == Stack trace for context 0x55b3345fd3d0 ==
  #0   7ffeabd810d0 b   /data/GNOME/gnome-shell/js/ui/dash.js:86
  #1   55b335b62f88 i   /data/GNOME/JHBUILD_HOME/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/docking.js:487
  #2   7ffeabd838f0 b   self-hosted:1121
  #3   55b335b62ec8 i   /data/GNOME/gnome-shell/js/ui/layout.js:240

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2739>

3 years agopanelMenu: Fix keynav of menu-less buttons
Florian Müllner [Wed, 8 Mar 2023 03:48:05 +0000 (04:48 +0100)]
panelMenu: Fix keynav of menu-less buttons

The left/right navigation between top bar buttons is usually
handled by a key-press handler on the button's menu.

However when a DummyMenu is used, the button itself serves as
fake menu actor and will get grabbed when "opening" the menu.
Due to that grab, the event is not propagated to the stage,
and regular keynav does not work.

To avoid the focus getting stuck in that case, add an explicit
key-press handler that bypasses the grab.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2734>

3 years agomessageTray: Don't set _notificationRemoved if destroyed notification is queued
msizanoen1 [Sat, 15 Apr 2023 08:55:47 +0000 (15:55 +0700)]
messageTray: Don't set _notificationRemoved if destroyed notification is queued

When the user clears all notifications from the notification menu UI, it's
possible for a queued notification to be destroyed after the currently displayed
notification. The removal of the currently displayed notification is not
processed until the notification menu is closed (due to `this._bannerBlocked`).
By then, it's possible that `_notificationRemoved` has already been overwritten
when `_onNotificationDestroy` is invoked with another (queued) notification.

This eventually results in a notification banner that cannot be removed by the
user as the notification object needed to do so has already been destroyed.

Fix this by only assigning to `_notificationRemoved` if `this._notification ==
notification`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2736>

3 years agost/icon-theme: Fix small memory leak when checking fallback theme path
Sebastian Keller [Sun, 16 Apr 2023 21:23:11 +0000 (23:23 +0200)]
st/icon-theme: Fix small memory leak when checking fallback theme path

This is a small one time leak if there is more than one entry in the
search path due to multiple iterations overwriting the old pointer
before finally going out of scope.

Fixes: 934faaace ("st/icon-theme: Start using g_autofree")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2737>

3 years agoUpdate Hungarian translation
Balázs Úr [Thu, 13 Apr 2023 21:40:08 +0000 (21:40 +0000)]
Update Hungarian translation

3 years agoUpdate Galician translation
Fran Dieguez [Thu, 13 Apr 2023 16:59:21 +0000 (16:59 +0000)]
Update Galician translation

3 years agoUpdate Hebrew translation
Yaron Shahrabani [Thu, 13 Apr 2023 11:29:58 +0000 (11:29 +0000)]
Update Hebrew translation

3 years agoUpdate Turkish translation
Sabri Ünal [Wed, 12 Apr 2023 20:12:31 +0000 (20:12 +0000)]
Update Turkish translation

3 years agoUpdate Slovenian translation
Martin [Wed, 12 Apr 2023 19:49:42 +0000 (19:49 +0000)]
Update Slovenian translation

3 years agoUpdate Chinese (China) translation
Boyuan Yang [Mon, 10 Apr 2023 19:42:48 +0000 (19:42 +0000)]
Update Chinese (China) translation

3 years agoUpdate Persian translation
Danial Behzadi [Mon, 10 Apr 2023 16:40:32 +0000 (16:40 +0000)]
Update Persian translation

3 years agoUpdate Lithuanian translation
Aurimas Černius [Mon, 10 Apr 2023 11:05:52 +0000 (11:05 +0000)]
Update Lithuanian translation

3 years agoUpdate Serbian translation
Марко Костић [Sun, 9 Apr 2023 09:11:45 +0000 (09:11 +0000)]
Update Serbian translation

3 years agoUpdate Russian translation
Aleksandr Melman [Sat, 8 Apr 2023 11:48:40 +0000 (11:48 +0000)]
Update Russian translation

3 years agoUpdate Bulgarian translation
Alexander Shopov [Fri, 7 Apr 2023 16:47:44 +0000 (16:47 +0000)]
Update Bulgarian translation

3 years agoUpdate Bulgarian translation
Alexander Shopov [Fri, 7 Apr 2023 16:31:29 +0000 (16:31 +0000)]
Update Bulgarian translation

3 years agoUpdate Polish translation
Piotr Drąg [Thu, 6 Apr 2023 12:37:11 +0000 (14:37 +0200)]
Update Polish translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Thu, 6 Apr 2023 11:04:13 +0000 (11:04 +0000)]
Update Indonesian translation

3 years agost/icon-theme: Fix transparent colors in symbolic SVGs
Florian Müllner [Wed, 5 Apr 2023 14:02:29 +0000 (16:02 +0200)]
st/icon-theme: Fix transparent colors in symbolic SVGs

When loading a symbolic SVG, the original file is wrapped in
a header that includes a generated stylesheet with the
appropriate colors, plus an overall opacity.

The opacity value is clamped to values between 0 and 1, which
directly matched the alpha field of the GdkRGBA type. However
since we moved to StIconColors/ClutterColor, the alpha field
is now in the range [0..255], any alpha value other than 0 now
results in full opacity.

To fix, translate the [0..255] integer into a [0..1] double
before using it as opacity.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2731>

3 years agomisc/objectManager: Fix emission of object-removed signal
Jonas Dreßler [Mon, 3 Apr 2023 14:12:59 +0000 (16:12 +0200)]
misc/objectManager: Fix emission of object-removed signal

Emitting this signal is broken right now: We check for a length of 0 on
this._objects[objectPath], but the
`this._objects[objectPath][interfaceName] = null` we do before the
check doesn't actually remove the key, it only sets the value to null,
leaving the key around and thus the amount of entries in the object doesn't
change.

Fix that by using the delete statement instead, "delete" properly removes
the key and thus affects the amount of entries in the object, making our
length === 0 check effective.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2730>

3 years agoUpdate Swedish translation
Anders Jonsson [Wed, 5 Apr 2023 16:34:30 +0000 (16:34 +0000)]
Update Swedish translation

3 years agoUpdate Friulian translation
Fabio Tomat [Wed, 5 Apr 2023 15:22:38 +0000 (15:22 +0000)]
Update Friulian translation

3 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 5 Apr 2023 09:41:45 +0000 (09:41 +0000)]
Update Portuguese translation

3 years agopowerProfiles: Rename "Power Profiles" to "Power Mode"
Automeris naranja [Thu, 16 Mar 2023 19:32:12 +0000 (16:32 -0300)]
powerProfiles: Rename "Power Profiles" to "Power Mode"

This changes renames the power profiles submenu title to "Power Mode",
making it consistent with the toggle title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2697>

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Tue, 4 Apr 2023 18:34:12 +0000 (18:34 +0000)]
Update Ukrainian translation

3 years agostatus/network: Improve a11y of wireless network items
Lukáš Tyrychtr [Fri, 24 Mar 2023 10:02:33 +0000 (11:02 +0100)]
status/network: Improve a11y of wireless network items

This MR does the following:
* Allows a screen reader user to determine the currently connected network
* Allwos a screen reader to read the security status and signal strength

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2724>

3 years agoUpdate Persian translation
MohammadSaleh Kamyab [Mon, 3 Apr 2023 13:10:24 +0000 (13:10 +0000)]
Update Persian translation

3 years agoUpdate Russian translation
Aleksandr Melman [Mon, 3 Apr 2023 07:25:56 +0000 (07:25 +0000)]
Update Russian translation

3 years agoUpdate Bulgarian translation
Alexander Shopov [Thu, 30 Mar 2023 12:04:36 +0000 (12:04 +0000)]
Update Bulgarian translation

3 years agoappFavorite: Add missing .desktop extension for simplescan
Jordan Petridis [Wed, 29 Mar 2023 13:52:16 +0000 (13:52 +0000)]
appFavorite: Add missing .desktop extension for simplescan

Followup to cbecc1dbfde2de34044a02e2910bf4705ea891ae

One line changes are hard.. Was too focused on copy pasting the id
that I omitted the .desktop part.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2728>

3 years agostyle: Light variant fixes and accommodations
Sam Hewitt [Thu, 13 Oct 2022 16:51:17 +0000 (14:21 -0230)]
style: Light variant fixes and accommodations

- Fixing things where the wrong colors bleed through or the colors are inconsistent.
- expand colors definitions for system colours
- add overrides to styles for overview and lockscreen
- update drawing functions to better use new colours
- rework entry drawing css

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2515>

3 years agoUpdate French translation
Guillaume Bernard [Tue, 28 Mar 2023 10:27:26 +0000 (10:27 +0000)]
Update French translation

3 years agoextensionDownloader: Check schemadir existence and type
Andy Holmes [Mon, 27 Mar 2023 19:41:50 +0000 (12:41 -0700)]
extensionDownloader: Check schemadir existence and type

When checking for an extension schemadir, an error will be thrown if
`query_info()` is used and the directory is missing.

Catch the case of a missing directory, but throw an error if the
path exists as a non-directory type.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2727>

3 years agostatus/network: Fix a11y names for VPN connection menu items
Lukáš Tyrychtr [Thu, 23 Mar 2023 13:59:01 +0000 (14:59 +0100)]
status/network: Fix a11y names for VPN connection menu items

Because of an omission, the VPN menu items never got its a11y name,
so a screen reader was reporting that item only as a plain item without
any label.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2720>

3 years agoUpdate Chinese (China) translation
Boyuan Yang [Mon, 27 Mar 2023 16:37:43 +0000 (16:37 +0000)]
Update Chinese (China) translation

3 years agoquickSettings: Fix icon-name construct property in menu toggles
Florian Müllner [Sat, 25 Mar 2023 21:55:33 +0000 (22:55 +0100)]
quickSettings: Fix icon-name construct property in menu toggles

Both :icon-name and :gicon are propagated to the internal QuickToggle
with property bindings. However the bindings are set up in the wrong
order:

:icon-name is a convenience property to set :gicon to a ThemedIcon
of the given name. That means binding :icon-name first will correctly
set the underlying StIcon's :gicon, but then the :gicon binding will
set it again to null.

Fix this by swapping the order in which the bindings are set up,
so that it works for both properties.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6542

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2726>

3 years agoUpdate Turkish translation
Sabri Ünal [Mon, 27 Mar 2023 12:10:40 +0000 (12:10 +0000)]
Update Turkish translation

3 years agoUpdate Dutch translation
Nathan Follens [Sun, 26 Mar 2023 16:27:37 +0000 (16:27 +0000)]
Update Dutch translation

3 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 26 Mar 2023 08:23:05 +0000 (08:23 +0000)]
Update Basque translation

3 years agoscreenshot: Fix broken GLib.Error.matches call
Adam Williamson [Sat, 25 Mar 2023 16:19:41 +0000 (09:19 -0700)]
screenshot: Fix broken GLib.Error.matches call

You have to pass a domain and an error code, not just an error
code.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6540

Signed-off-by: Adam Williamson <awilliam@redhat.com>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2725>

3 years agoUpdate Latvian translation
Rūdolfs Mazurs [Fri, 24 Mar 2023 20:13:44 +0000 (20:13 +0000)]
Update Latvian translation

3 years agoappFavorite: Rename simple-scan.desktop
Jordan Petridis [Fri, 24 Mar 2023 09:48:47 +0000 (09:48 +0000)]
appFavorite: Rename simple-scan.desktop

simple-scan app-id will soon be renamed to org.gnome.SimpleScan
and thus we need to add the .desktop file to `RENAMED_DESKTOP_IDS`

https://gitlab.gnome.org/GNOME/simple-scan/-/merge_requests/11

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2723>

3 years agoUpdate British English translation
Bruce Cowan [Wed, 22 Mar 2023 15:36:25 +0000 (15:36 +0000)]
Update British English translation

3 years agostatus/network: Generalize code to hide subtitle
Georges Basile Stavracas Neto [Mon, 6 Mar 2023 19:29:46 +0000 (16:29 -0300)]
status/network: Generalize code to hide subtitle

Commit 9d75d777c72e introduced code to hide the subtitle of the
quick setting toggle when it matches the title of the toggle.
That's because NetworkManager tries to make the network names
more palatable on its own, and reports that the name of single
wired networks is "Wired" even if it may have another name.

What that commit failed to account for, however, is that there are
other circumstances where we end up with a subtitle is exactly the
same of the title. For example, when turning off Wi-Fi or mobile
broadband connections.

The behaviour of commit 9d75d777c72e is safe enough to be applied
on other device-backed connections, so do it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2682>

3 years agoscreenshot: Get cursor texture from window
Ivan Molodetskikh [Sun, 19 Mar 2023 04:45:41 +0000 (21:45 -0700)]
screenshot: Get cursor texture from window

When a window is in the background and should not have the cursor on top
of it, its _cursor will be null. By getting the texture through it, we
add this extra check, which was missing before, leading to a cursor
drawn at 0, 0 on windows where it should not have been drawn.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2702>

3 years agost/icon-theme: Disconnect from settings signals on disposal
Marco Trevisan (Treviño) [Mon, 20 Mar 2023 20:23:36 +0000 (21:23 +0100)]
st/icon-theme: Disconnect from settings signals on disposal

Icon themes can be created by extensions and thus are likely destroyed on
extension unload, so we must disconnect from StSettings signals to avoid
accessing to invalid memory.

See: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2012021
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2711>

3 years agoworkspacesView: Update visibility after updating workspaces
Florian Müllner [Sat, 18 Mar 2023 16:54:35 +0000 (17:54 +0100)]
workspacesView: Update visibility after updating workspaces

When the number of workspaces changes, it is possible that one
of the visible (non-active) workspaces is removed, and another
invisible workspace moves in its place.

Make sure that workspaces are shown as necessary in this case.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6519

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2699>

3 years agoUpdate Persian translation
Danial Behzadi [Tue, 21 Mar 2023 10:13:23 +0000 (10:13 +0000)]
Update Persian translation

3 years agoscreenshot: Use meta_window_has_pointer () for pointer check
Ivan Molodetskikh [Mon, 20 Mar 2023 18:49:24 +0000 (11:49 -0700)]
screenshot: Use meta_window_has_pointer () for pointer check

https://gitlab.gnome.org/GNOME/mutter/-/commit/909616b20876478bc56932cd18c8e85e982645f6 seems to have wrapped window actors in a container, so the actor.has_pointer check started failing. Instead, switch to meta_window_has_pointer () which doesn't rely on window actor implementation details.

We check for existence of has_pointer first just in case someone attempts to run gnome-shell 44.1 with mutter 44.0 which does not have the function exported publicly yet.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2710>

3 years agoUpdate Slovenian translation
Martin [Mon, 20 Mar 2023 22:01:51 +0000 (22:01 +0000)]
Update Slovenian translation

3 years agoUpdate Swedish translation
Anders Jonsson [Mon, 20 Mar 2023 21:23:48 +0000 (21:23 +0000)]
Update Swedish translation

3 years agomain: Add missing newlines
Florian Müllner [Mon, 20 Mar 2023 18:18:29 +0000 (19:18 +0100)]
main: Add missing newlines

Unlike the various log macros, g_printerr() does not append '\n'
by itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2709>

3 years agoUpdate Indonesian translation
Andika Triwidada [Mon, 20 Mar 2023 04:10:31 +0000 (04:10 +0000)]
Update Indonesian translation

3 years agostyle: Reduce padding between quick menu toggle text and separator
Sebastian Keller [Tue, 7 Mar 2023 14:11:22 +0000 (15:11 +0100)]
style: Reduce padding between quick menu toggle text and separator

The padding between the text and the arrow button separator effectively
was 2 * base_padding, while the spacing between the icon and the text
was just 1.5 * base_padding. This was a bit uneven and also could result
in the text getting ellipsized when it wasn't necessary.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6432
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2685>

3 years agoUpdate Hungarian translation
Balázs Úr [Sun, 19 Mar 2023 22:22:54 +0000 (22:22 +0000)]
Update Hungarian translation

3 years agomodalDialog: Fix fading out dialog
Florian Müllner [Wed, 15 Mar 2023 19:41:48 +0000 (20:41 +0100)]
modalDialog: Fix fading out dialog

The dialog's state property has been read-only since
commit 2f6323afc, but the callback at the end of the
fade transition still tries to set the value directly.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6506

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2696>

3 years agoendSessionDialog: Catch async errors
Florian Müllner [Wed, 15 Mar 2023 19:11:39 +0000 (20:11 +0100)]
endSessionDialog: Catch async errors

Otherwise the actual error is masked by an "unhandled promise
rejection" error, making it harder to track down the underlying
cause.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6506

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2696>

3 years agotests: Set GNOME_SHELL_SESSION_MODE to user
Marco Trevisan (Treviño) [Fri, 24 Feb 2023 03:32:51 +0000 (04:32 +0100)]
tests: Set GNOME_SHELL_SESSION_MODE to user

This may not be unset in some environments, so let's override it with the
default value.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2661>

3 years agotests: Add default test setup with common env settings
Marco Trevisan (Treviño) [Fri, 24 Feb 2023 03:32:08 +0000 (04:32 +0100)]
tests: Add default test setup with common env settings

Add common test environment variables to a default test setup so that they
don't need to be repeated everywhere.

Also ensures that we're always using the gsettings memory backend to never
interfere with local environment.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2661>

3 years agoextension-tool: Set reminder for removing old compat code
Florian Müllner [Sun, 12 Feb 2023 23:26:29 +0000 (00:26 +0100)]
extension-tool: Set reminder for removing old compat code

GSettings schemas are now compiled at install time, so it is no
longer necessary to include the compiled schema in the archive.

However the `gnome-extensions pack` command hasn't been adjusted,
so that it can still be used to produce valid archives for all
supported versions.

To not let that code linger forever, error out when building
a version where GNOME 44 is the oldest supported release.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2639>

3 years agoUpdate Galician translation
Fran Dieguez [Sun, 19 Mar 2023 16:14:36 +0000 (16:14 +0000)]
Update Galician translation

3 years agomain: Fix syncing animations-enabled
Florian Müllner [Fri, 17 Mar 2023 00:05:48 +0000 (01:05 +0100)]
main: Fix syncing animations-enabled

Whether or not animations should be enabled depends on various
factors, some of which may change at runtime. We therefore
track changes, and sync the setting by calling inhibit/uninhibit
as necessary.

Except that we never actually record the new state, so when animations
are disabled, we end up inhibiting them every time
the setting is synced, whoops.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2698>

3 years agoextensionSystem: Fix extension reloading
Florian Müllner [Tue, 14 Mar 2023 11:57:43 +0000 (12:57 +0100)]
extensionSystem: Fix extension reloading

Unloading an extension has become an async operation, but we aren't
awaiting the result. That means that we recreate the extension
object *before* we remove the "old" extension object from the map,
with the effect that the reloaded extension is removed completely.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6507

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2694>

3 years agoappDisplay: Avoid using an undefined _swipeTracker
Daniel van Vugt [Tue, 14 Mar 2023 09:35:34 +0000 (17:35 +0800)]
appDisplay: Avoid using an undefined _swipeTracker

It might have been deleted already during shutdown by `_onDestroy()`.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6512
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2693>

3 years agoscreenshot: Fix code typo
Carlos Garnacho [Mon, 13 Mar 2023 09:54:33 +0000 (10:54 +0100)]
screenshot: Fix code typo

Even though commit b89d90eb8 talked about the GLib.BookmarkFile
type, this didn't stop the code from sneaking a silly typo and
refer to this GLib.BookmarksFile (i.e. extra 's').

Fix the code to refer to the right type name and constructor.

Fixes: b89d90eb8 ("screenshot: Use GLib.BookmarkFile to save recent screenshots")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2692>

3 years agostatus/location: Handle geoclue not being activatable
Will Thompson [Wed, 8 Mar 2023 20:44:36 +0000 (20:44 +0000)]
status/location: Handle geoclue not being activatable

In GNOME OS, due to a misconfiguration, geoclue was configured without
systemd support. In that configuration, geoclue does not install its
systemd .service file (geoclue.service) but it (incorrectly) includes
the following line in its D-Bus service file:

    SystemdService=geoclue.service

As a result, when dbus-daemon tried to activate it at gnome-shell's
request, it would fail with:

    Unit geoclue.service not found

Then, GeoclueAgent._onGeoclueVanished() would be called, as the
name_vanished_handler passed to Gio.bus_watch_name(). This is consistent
with Gio.bus_watch_name()'s documentation:

> You are guaranteed that one of the handlers will be invoked after
> calling this function.

But that function assumed that this._managerProxy is defined, leading
to:

    JS ERROR: TypeError: this._managerProxy is undefined
    _onGeoclueVanished@resource:///org/gnome/shell/ui/status/location.js:163:9

Fix this by checking for nullishness of this._managerProxy. (Strictly
speaking, it's undefined rather than being null, but other code in this
file already uses the vaguer '!= null' test, which considers undefined
to be null.)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2689>

3 years agostatus/bluetooth: Fix bluetooth placeholder text alignment
Sebastian Keller [Tue, 7 Mar 2023 19:02:10 +0000 (20:02 +0100)]
status/bluetooth: Fix bluetooth placeholder text alignment

The padding specified for .bt-menu-placeholder was overridden by the
more specific.popup-menu-item:ltr/rtl padding. Also the ornament, was
still taking up space, as well as the spacing between the ornament and
the text.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6434
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2687>

3 years agona-xembed: Do not use same coordinates of mutter offscreen windows
Marco Trevisan (Treviño) [Tue, 7 Mar 2023 00:12:15 +0000 (01:12 +0100)]
na-xembed: Do not use same coordinates of mutter offscreen windows

We created the socket window using the same coordinates that mutter uses
for its own off-screen windows created via
meta_x11_display_create_offscreen_window() and that are filtered out in
MetaWindowX11's is_our_xwindow().

This caused these windows to be never tracked by mutter and then we
never received a "::window-created" signal that should lead a ShellTrayIcon
to associate itself as the clone of the created MetaWindow.

So, still keep it offscreen, but at different location.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2684>

3 years agostatus/backgroundApps: Add section title
Florian Müllner [Fri, 24 Feb 2023 00:41:26 +0000 (01:41 +0100)]
status/backgroundApps: Add section title

At least for the time being, the background portal's app monitor
only supports flatpak apps, which are the only apps where we can
reliably match processes to .desktop files and assume that they
belong to graphical apps.

To indicate that there may well be apps that don't appear in the
list despite running in the background, add a clarifying section
title.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6400

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2681>

3 years agost/icon-theme: Remove unnecessary CLAMP()
Florian Müllner [Fri, 3 Feb 2023 14:52:46 +0000 (15:52 +0100)]
st/icon-theme: Remove unnecessary CLAMP()

The ClutterColor struct members are 8-bit unsigned integers, so
they are always in the 0 to 255 range.

Spotted by coverity.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2679>

3 years agost: Stop implementing custom refcounting
Florian Müllner [Wed, 25 Jan 2023 20:45:49 +0000 (21:45 +0100)]
st: Stop implementing custom refcounting

Glib has generic RcBox/ArcBox types nowadays that can be used to
add ref-counting to a plain struct types, use those instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2679>

3 years agoBump version to 44.0
Florian Müllner [Sun, 19 Mar 2023 03:59:38 +0000 (04:59 +0100)]
Bump version to 44.0

Update NEWS.

3 years agoUpdate Persian translation
MohammadSaleh Kamyab [Thu, 16 Mar 2023 13:31:10 +0000 (13:31 +0000)]
Update Persian translation